home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.orig.lzh
/
misc
/
newsboot
< prev
next >
Wrap
Text File
|
1989-06-27
|
583b
|
30 lines
#! /bin/sh
# newsboot - clean up on reboot
# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}
PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK
cd $NEWSCTL
rm -f L.* LOCK* # leftover locks
rm -f history.n* # leftover expire work files
rm -f $NEWSARTS/in.coming/nspool.* # leftover input temporaries
# nntp goo processing
cd $NEWSARTS/in.coming
for f in nntp.* # find partial batches
do
while test -f $f # still there?
do
name=`getdate now`
if test ! -f $name
then
mv $f $name
else
sleep 2
fi
done
done